package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.project.util.codingUtils.TimeChangeUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wangsihan
 * @since 2021-10-08
 * 评论实体bean
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SysComment extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("pk_commentId")
    private Integer pkCommentid;

    /**
     * 用户外键
     */
    @TableField("fk_userId")
    private SysUser user;

    /**
     * 商品外键
     */
    private SysProduct product;

    /**
     * 所属商铺
     */
    private SysStore store;

    /**
     * 评论状态
     * 商家是否评论
     */
    private String cState = "未评价";

    /**
     * 评论时间
     */
    private String cTime = TimeChangeUtil.timeUtil();

    /**
     * 评论内容
     */
    private String cInfo;

    /**
     * 评论星级
     */
    private Integer cClaims;

    /**
     * 商家评论
     */
    @TableField("c_merchantComment")
    private String cMerchantcomment;


}
